<template>
  <div>
   <tables  :loadDataApi="getCars"  :tableCofig="tableConfig" ref="tables"  :columns="columns" />
  
  </div>
  
</template>

<script>
import Tables from '_c/tables'
import { getNormalCars} from '@/api/car/carApi'
export default {
  components: {
    Tables
  },
  data () {
    return {
      getCars:getNormalCars,
      tableConfig:{
          border:true,
          stripe:true,
          buttons:["filtr",'hidel'],
          noDataText:'暂无车辆信息'
       },
      columns: [
        {title: '车辆编号', key: 'id',fixed:'left'},
        {title: '车辆品牌', key: 'brandName',width:100,align:'center'},
        {title: '车辆类型', key: 'model',width:100,align:'center'},
        {title: '车牌号', key: 'plateNumber',tooltip:true,ellipsis:true,width:100,align:'center' },
        {title: '温度', key: 'temperature',width:80,align:'center' },
        {title: '设备号', key: 'driverid' },
        {title: '车辆状态', key: 'use',width:100,align:'center'},
        {title: '承运商', key: 'cid',width:100,align:'center'},
        {title: '注册时间', key: 'createtime'} 
      ]
    }
  },
  methods: {
      
  },  
  mounted () {
   
  }
}
</script>

<style>

</style>

